package cn.initcap.designpattern.pattern.structural.facade;

/**
 * @author initcap
 * @date 2018/8/28 AM9:13
 */
public class Computer {
    private Cpu cpu;
    private Disk disk;

    public Computer() {
        this.cpu = new Cpu();
        this.disk = new Disk();
    }

    public void open() {
        this.cpu.open();
        this.disk.open();
    }

    public void close() {
        this.cpu.close();
        this.disk.close();
    }

}
